
function changeCity(city){
	
	var district = document.getElementById("district"); 	//得到district的(下拉)对象
	var cityId = city.value;  

	var cc = document.getElementById("sc");
	//alert(cc);
	if(cc!=null){
		city.options[0]=null;
	}
	//district.options[district.length] = new Option("必须","0");
	//改变第二级(district)下拉
	addressService.listDistrictsByCityId(cityId, function(list){
		dwr.util.removeAllOptions(district);	//清除district的下拉对象
		dwr.util.addOptions(district, list,"idno","dname");   //将新得到的数据放入district对象并生成"Option"
		//alert(list[0].idno);
		
		//同时关联第三级(county)下拉
		changeDistrict(district);
		
	});
	
}

 function changeDistrict(district) {
 
 	var county = document.getElementById("countyid"); 	//得到county的（下拉）对象
 	var districtId = district.value;
 	addressService.listCountiesByDistrictId(districtId, function(list){
 		dwr.util.removeAllOptions(county);
 		dwr.util.addOptions(county, list,"idno","cname");
 	});
 }
 
 function changeCounty(){
 		
 }